import { buildService, openBuildService } from '../../helper/service'

// 值类型为String或Object,String为url(method),Object同axios(config)参数支持相同,data和params只能为对象类型
const settings = {
  //图纸管理-列表
  getPaperList: {
    url: '/api/v1/paper/get_paper_list',
    method: 'get'
  },
  //版本号下拉
  getVerList: {
    url: '/api/v1/paper/get_project_paper_version_list',
    method: 'get'
  },
  //创建/编辑版本
  saveVer: {
    url: '/api/v1/paper/save_project_paper_version',
    method: 'post'
  },
  //新增图纸
  addPaper: {
    url: '/api/v1/paper/save_paper',
    method: 'post'
  },
  //获取图纸信息
  getPaperInfo: {
    url: '/api/v1/paper/get_paper_info',
    method: 'get'
  },
  //编辑图纸
  editPaper: {
    url: '/api/v1/paper/edit_paper',
    method: 'put'
  },
  //删除图纸
  delPaper: {
    url: '/api/v1/paper/del_paper',
    method: 'delete'
  },

}
const openSetting = {
  // // 街道列表
  // getStreetList: {
  //   url: '/api/v1/base/area/get_area_box_list',
  //   method: 'post'
  // }
  //获取浙里建图纸
  getPaper: {
    url: '/proxy/admin/v1/zlb/graph/url',
    method: 'get'
  }
}
export default { ...buildService(settings), ...openBuildService(openSetting) }
